import cv2

o = cv2.imread("D:\\xiuzhi.jpg")
Laplacian = cv2.Laplacian(o, cv2.CV_64F)
Laplacian = cv2.convertScaleAbs(Laplacian)
cv2.imshow("original", o)
cv2.imshow("Laplaian", Laplacian)
cv2.waitKey()
cv2.destroyAllWindows()